package cn.wolfcode.luowowo.common.service;

import cn.wolfcode.luowowo.common.domain.WendaAnswerComment;
import cn.wolfcode.luowowo.common.query.WendaAnswerCommentQuery;
import org.springframework.data.domain.Page;

import java.util.List;

public interface IWendaAnswerCommentService {
    /**
     * 保存和修改操作者
     * @param strategyComment
     */
    void saveOrUpdate(WendaAnswerComment wendaAnswerComment);

    /**
     * 攻略评论的分页展示
     * @param qo
     * @return
     */
    Page query(WendaAnswerCommentQuery qo);

    /**
     * 点赞
     * @param aid
     * @param userId
     */
    boolean thumbUp(String aid, Long userId);

    WendaAnswerComment get(String aid);

    boolean thumbsupnumIncrease(String aid, Long uid);

    WendaAnswerComment getByid(String aid);
}
